package com.example.demo.utils;

import org.springframework.stereotype.Component;

import java.util.HashMap;

/**
 * <p>Description:  </p>
 * <p>CreateTime:   2020/7/21 </p>
 *
 * @author fujian
 */
@Component
public class R extends HashMap<String,Object> {
    /**
     *
     */
    private static final long serialVersionUID = 1L;

    public R(){

    }

    public R success(){
        this.put("result","success");
        return this;
    }

    public R fail(){
        this.put("result","fail");
        return this;
    }



}
